package com.finance.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: Apollo
 * @Date: 2021/4/10
 * @Description: 还款规则
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "rules_payment")
public class RulesPayment implements Serializable {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 支持部分还款的类型 1:提前还款 2:按时还款
     */
    private Integer type;

    /**
     * 部分还款期数 1:1期 2:2期
     */
    private Integer partialRepaymentPeriod;

    /**
     * 部分还款比例
     */
    private Integer partialRepaymentRatio;

    /**
     * 贷款产品标识
     */
    private String loanProductCode;



    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_TYPE = "type";

    public static final String COL_PARTIAL_REPAYMENT_PERIOD = "partial_repayment_period";

    public static final String COL_PARTIAL_REPAYMENT_RATIO = "partial_repayment_ratio";

    public static final String COL_LOAN_PRODUCT_CODE = "loan_product_code";

}